<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>ajax</title>
</head>
<body>
    <button id="btn">请求数据</button>
    <script src="./js/ajax.js"></script>
    <!-- <script>
        const xmlHttp = new XMLHttpRequest()
        xmlHttp.open('GET','http://47.105.173.95:3000/ap/users/?id=10')
        xmlHttp.send()
        xmlHttp.onload = function(){
            console.log(xmlHttp.readyState)
            console.log(xmlHttp.status)
            console.log(xmlHttp.responseText)

        }
    </script> -->
</body>
</html>